<template>
  <!--  动画  -->
  <div class="loader"></div>
</template>

<script setup lang="ts">

</script>

<style scoped>
/*    loder线条   */
.loader {
  display: block;
  --height-of-loader: 10px;
  --loader-color: #0753a2;
  width: 100vw;
  height: var(--height-of-loader);
  border-radius: 30px;
  background-color: rgba(0, 0, 0, 0.2);
  position: fixed;
  bottom: 0;
}

.loader::before {
  content: "";
  position: absolute;
  background: var(--loader-color);
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-radius: 30px;
  animation: moving 2s ease-in-out infinite;;
}

@keyframes moving {
  50% {
    width: 100%;
  }

  100% {
    width: 0;
    right: 0;
    left: unset;
  }
}

</style>